import { PropsWithChildren } from 'react'
import { useLaunch } from '@tarojs/taro'

// 引入NutUI样式
import '@nutui/nutui-react-taro/dist/style.css';
import './app.less';

import { configure } from 'mobx';
configure({ enforceActions: "never" });

import applyStyleFixes from './utils/styleFix';

function App({ children }: PropsWithChildren<any>) {
    // 在应用启动时应用样式修复
    useLaunch(() => {
        applyStyleFixes();
    });

    return children
}

export default App
